Optimal. Leaf size=30 \[ \frac{b \sec ^3(e+f x)}{3 f}-\frac{a \log (\cos (e+f x))}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.023017, antiderivative size = 30, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.105, Rules used = {4138, 14} \[ \frac{b \sec ^3(e+f x)}{3 f}-\frac{a \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4138
Rule 14
Rubi steps
\begin{align*} \int \left (a+b \sec ^3(e+f x)\right ) \tan (e+f x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{b+a x^3}{x^4} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{\operatorname{Subst}\left (\int \left (\frac{b}{x^4}+\frac{a}{x}\right ) \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac{a \log (\cos (e+f x))}{f}+\frac{b \sec ^3(e+f x)}{3 f}\\ \end{align*}
Mathematica [A] time = 0.0134052, size = 30, normalized size = 1. \[ \frac{b \sec ^3(e+f x)}{3 f}-\frac{a \log (\cos (e+f x))}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.02, size = 28, normalized size = 0.9 \begin{align*}{\frac{b \left ( \sec \left ( fx+e \right ) \right ) ^{3}}{3\,f}}+{\frac{a\ln \left ( \sec \left ( fx+e \right ) \right ) }{f}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.03585, size = 38, normalized size = 1.27 \begin{align*} -\frac{a \log \left (\cos \left (f x + e\right )^{3}\right ) - \frac{b}{\cos \left (f x + e\right )^{3}}}{3 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.508701, size = 93, normalized size = 3.1 \begin{align*} -\frac{3 \, a \cos \left (f x + e\right )^{3} \log \left (-\cos \left (f x + e\right )\right ) - b}{3 \, f \cos \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.32186, size = 42, normalized size = 1.4 \begin{align*} \begin{cases} \frac{a \log{\left (\tan ^{2}{\left (e + f x \right )} + 1 \right )}}{2 f} + \frac{b \sec ^{3}{\left (e + f x \right )}}{3 f} & \text{for}\: f \neq 0 \\x \left (a + b \sec ^{3}{\left (e \right )}\right ) \tan{\left (e \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.30283, size = 262, normalized size = 8.73 \begin{align*} \frac{6 \, a \log \left (-\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1\right ) - 6 \, a \log \left ({\left | -\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} - 1 \right |}\right ) + \frac{11 \, a + 4 \, b + \frac{33 \, a{\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac{33 \, a{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{12 \, b{\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac{11 \, a{\left (\cos \left (f x + e\right ) - 1\right )}^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}}{{\left (\frac{\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1\right )}^{3}}}{6 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]